// 权限检查
if (!localStorage.getItem('token')) {
	location.href = './logIn.html'
}
// 用户名显示
document.querySelector('.showUsername').innerHTML = localStorage.getItem('username') || ''
// 退出界面，清理数据
document.querySelector('.getOut').addEventListener('click', e => {
	localStorage.clear()
	location.href = './logIn.html'
})
document.addEventListener('DOMContentLoaded', async () => {
	const res = await axios({
		url: '/dashboard',
	})
	console.log(res)
})